{if $loggedin == 0}
<div style="display:none">
<script language="javascript" src="{$smarty.const.THEME_RELATIVE}modules/loginmodule/js/loginpopup.js"></script>

<script language="javascript">
    var _login_agreed_term = "{$_TR.agree_term_policy_alert}";
</script>

<div id="loginbox" class="fancybox">
    <div class="fancybox_title">
        <h4>{$_TR.fancyboxLogin_title}</h4>
        <div class="clear"></div>
    </div>
    <div class="fancybox_body">
        <form id="login" >
            <input type="hidden" name="action" value="login_ajax">
            <input type="hidden" name="module" value="loginmodule">
            <input type="hidden" name="ajax_action" value="1">
            
            <div class="control" >
                <label>
                    <span class="label">{$_TR.fancyboxLogin_Username}</span>
                    <input id="login-email" value="" name="username" class="text" type="text">
                </label>
            </div>
            
             <div class="control" >
                <label>
                    <span class="label">{$_TR.fancyboxLogin_Password}</span>
                    <input id="login-pass" value="" name="password" class="text" type="password">
                    <span class="" style="line-height:30px; font-family: 'Rokkitt' !important;"><input checked="checked" type="checkbox" name="remember" id="id_remember"> {$_TR.fancyboxLogin_RememberMe}</span>
                </label>
            </div>
            
            <div class="control" >
                <label>
                    <span class="label"><input checked="checked" type="checkbox" name="agreed" id="agreed" class="agreed" >{$_TR.agree_term_policy}</span>    
                </label>
            </div>
            
            <div class="floatLeft">
                <input id="submit" type="submit" class="login_button" value="{$_TR.login_button}">
                <div id="ajax_loading"><img align="absmiddle" src="{$smarty.const.THEME_RELATIVE}modules/loginmodule/images/spinner.gif">&nbsp;{$_TR.logining}</div>
            </div>
            <p class="floatRight" style="line-height:30px;"><a href="{link action='resetpass'}" id="forgot_password">{$_TR.fancyboxLogin_ForgotPassword}</a></p>
            <hr class="clear">
            <div id="login_error"></div>
            <p class="small">{$_TR.login_trouble} <a href="/contact">{$smarty.const.SMTP_FROMADDRESS}</a></p>
        </form>
    </div><!-- end #fancybox-body -->
</div>
<div class="login_box_success">
    {$_TR.login_successful}
</div></div>
{/if}